import Foundation

class ALMtBPmZiLSSFbfz: BwZilgDsbcahFqOk {
    static let WwJoBsxnOnzHObMj = ALMtBPmZiLSSFbfz()
    private override init() {}
    
    override func LUZNrRudwnrLwAwR(
        UhzaNhigkZjxYKFZ:String,
        TxzdMHVHmUVisByn:String,
        lnPbkmdwNECDwBnh: ((_ kKsxeMWRvxOisRhl: YIMResult<YIMEnum_LoginResult>) -> Void)? = nil
    ) {
        NbDnvbpESqnqDInl.ZSgCfzHnxpKhZfxO.qUronpQwkCUHNjmf(UhzaNhigkZjxYKFZ:UhzaNhigkZjxYKFZ, TxzdMHVHmUVisByn:TxzdMHVHmUVisByn, lnPbkmdwNECDwBnh:lnPbkmdwNECDwBnh)
    }
    
    override func DASFOrpmVNSuuhGj() {
        NbDnvbpESqnqDInl.bgaUTCffvgrJbXZU.TTYeYuvgYccRgOIP()
        fZwNztHkPUvazdeo.NKBRHVWrtACVYZIX.DWDZyFVwscgqplCs.removeAll()
        fZwNztHkPUvazdeo.NKBRHVWrtACVYZIX.qullakzWowrBAiuC = nil
        NbDnvbpESqnqDInl.KxuJgneUsZVEQtvM.eFgNVOpBmPmJhaCd()
        NbDnvbpESqnqDInl.ZSgCfzHnxpKhZfxO.eFgNVOpBmPmJhaCd(zUpYHyCUqzVsBFgF: false)
        NbDnvbpESqnqDInl.ZOjIzOztbVARDuqG = nil
    }
    
    override func CJpHDPXJovTfKuUn(
        bAviYiLBLceXSWgD: Bool = false
    ) -> Bool {
        if bAviYiLBLceXSWgD {
            return NbDnvbpESqnqDInl.ZSgCfzHnxpKhZfxO.BNcDeXiMYIkxTcTE != nil && NbDnvbpESqnqDInl.ZSgCfzHnxpKhZfxO.BNcDeXiMYIkxTcTE?.status == .connected
        } else {
            return NbDnvbpESqnqDInl.ZSgCfzHnxpKhZfxO.BNcDeXiMYIkxTcTE != nil
        }
    }
    
    override func CrMEZAmuFlNMKEGO(
        UhzaNhigkZjxYKFZ: String,
        lnPbkmdwNECDwBnh: @escaping (_ mKUIzAxlvBGUVfVk: Bool, _ user: YIMUser?) throws -> Void
    ) {
        if !fZwNztHkPUvazdeo.kKZHQgqVvWvEzcze.CJpHDPXJovTfKuUn() {
            NbDnvbpESqnqDInl.zYOvKsmnWpOUpLXr.CzkztFjgxzeSorYu {
                try? lnPbkmdwNECDwBnh(false, nil)
            }
            return
        }
        NbDnvbpESqnqDInl.ZSgCfzHnxpKhZfxO.etDatGyKwukGrbHv(kEZOdhLcNmJFYywX: "queryUserInfo", EeqbYNIBaZfkqYaF: [
            "accid" : UhzaNhigkZjxYKFZ,
        ]) { mKUIzAxlvBGUVfVk, EyTIVrNCTVqmYwPu, VnJfdRrzZmdnJmsc, EmqetgaKELbCTYMP in
            if !mKUIzAxlvBGUVfVk {
                NbDnvbpESqnqDInl.zYOvKsmnWpOUpLXr.CzkztFjgxzeSorYu {
                    try? lnPbkmdwNECDwBnh(false, nil)
                }
                return
            }
            NbDnvbpESqnqDInl.zYOvKsmnWpOUpLXr.CzkztFjgxzeSorYu {
                try? lnPbkmdwNECDwBnh(true, NbDnvbpESqnqDInl.zYOvKsmnWpOUpLXr.IYMCIgmwfHIBQjIX(EyTIVrNCTVqmYwPu!["user"], YIMUser.self))
            }
        }
    }
    
    override func gGSycVBbVjFDKkpo(lnPbkmdwNECDwBnh: @escaping (_ SKMldmaokHUJbBJx: [String]?) throws -> Void) {
        NbDnvbpESqnqDInl.zYOvKsmnWpOUpLXr.CzkztFjgxzeSorYu {
            try? lnPbkmdwNECDwBnh(NbDnvbpESqnqDInl.CrqtQKnPpOIPqGjt)
        }
    }
    
    override func zmWZczbIpjUGbXyf(UhzaNhigkZjxYKFZ: String, lnPbkmdwNECDwBnh: ((_ mKUIzAxlvBGUVfVk: Bool) throws -> Void)? = nil) {
        NbDnvbpESqnqDInl.ZSgCfzHnxpKhZfxO.etDatGyKwukGrbHv(kEZOdhLcNmJFYywX: "disturb", EeqbYNIBaZfkqYaF: [
            "conversationID" : UhzaNhigkZjxYKFZ,
            "conversationType" : YIMEnum_ConversationType.P2P.rawValue,
        ]) { mKUIzAxlvBGUVfVk, EyTIVrNCTVqmYwPu, VnJfdRrzZmdnJmsc, EmqetgaKELbCTYMP in
            if !mKUIzAxlvBGUVfVk {
                NbDnvbpESqnqDInl.zYOvKsmnWpOUpLXr.CzkztFjgxzeSorYu {
                    try? lnPbkmdwNECDwBnh?(false)
                }
                return
            }
            NbDnvbpESqnqDInl.zYOvKsmnWpOUpLXr.CzkztFjgxzeSorYu {
                try? lnPbkmdwNECDwBnh?(true)
            }
        }
    }
    
    override func qdcAyjfHZFHBKUvZ(UhzaNhigkZjxYKFZ: String, lnPbkmdwNECDwBnh: ((_ mKUIzAxlvBGUVfVk: Bool) throws -> Void)? = nil) {
        NbDnvbpESqnqDInl.ZSgCfzHnxpKhZfxO.etDatGyKwukGrbHv(kEZOdhLcNmJFYywX: "unDisturb", EeqbYNIBaZfkqYaF: [
            "conversationID" : UhzaNhigkZjxYKFZ,
            "conversationType" : YIMEnum_ConversationType.P2P.rawValue,
        ]) { mKUIzAxlvBGUVfVk, EyTIVrNCTVqmYwPu, VnJfdRrzZmdnJmsc, EmqetgaKELbCTYMP in
            if !mKUIzAxlvBGUVfVk {
                NbDnvbpESqnqDInl.zYOvKsmnWpOUpLXr.CzkztFjgxzeSorYu {
                    try? lnPbkmdwNECDwBnh?(false)
                }
                return
            }
            NbDnvbpESqnqDInl.zYOvKsmnWpOUpLXr.CzkztFjgxzeSorYu {
                try? lnPbkmdwNECDwBnh?(true)
            }
        }
    }
}
